<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('index','UserController@index');
Route::post('login',[\App\Http\Controllers\UserController::class,'login'])->middleware(\App\Http\Middleware\CheckInput::class);
//Route::view('list','lists');
Route::get('list',[\App\Http\Controllers\UserController::class,'list']);
Route::get('delete',[\App\Http\Controllers\UserController::class,'delete']);
Route::post('insert',[\App\Http\Controllers\UserController::class,'insert'])->middleware(\App\Http\Middleware\CheckInput::class);
Route::get('register',[\App\Http\Controllers\UserController::class,'register']);
Route::get('updates',[\App\Http\Controllers\UserController::class,'updates']);
Route::get('update',[\App\Http\Controllers\UserController::class,'update']);

